# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=peg
pkgver=0.1.18
pkgrel=1
pkgdesc="Recursive-descent parser generators for C"
url="https://www.piumarta.com/software/peg/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
source="https://www.piumarta.com/software/peg/peg-$pkgver.tar.gz"

build() {
	make
}

check() {
	make check
}

package() {
	make install -j1 ROOT="$pkgdir" PREFIX=/usr MANDIR="$pkgdir/usr/share/man/man1"
}

sha512sums="
ca2fb9088bf87955adf6f883370ddb7d5f6f3cae3605a871094317205a124cce4f7b9f83cf4662cb470e2c5a6977608b456eb1fad98022d7e40fc384d1fec0f8  peg-0.1.18.tar.gz
"
